package com.cipe.cmrs.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.UserRole
 * </p>
 * 
 * <p>
 * Generated at Sat Dec 03 14:39:50 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "userrole")
@SuppressWarnings("serial")
public class Userrole extends BaseAuditEntity {

	/**
	 * Attribute role
	 */
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "roleid")
	private Role	role;
	/**
	 * Attribute userinfo
	 */
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userinfoid")
	private User	userinfo;

	/**
	 * get role
	 */
	public Role getRole() {
		return this.role;
	}

	/**
	 * get userinfo
	 */
	public User getUserinfo() {
		return this.userinfo;
	}

	/**
	 * set role
	 */
	public void setRole(Role role) {
		this.role = role;
	}

	/**
	 * set userinfo
	 */
	public void setUserinfo(User userinfo) {
		this.userinfo = userinfo;
	}
}